cmake_minimum_required(VERSION 3.5.0)
project(gut)

set(CMAKE_CXX_STANDARD 17)

file(GLOB gut_srcs gut/*.cpp)

add_library(ogl-gut ${gut_srcs})


if(WIN32)
set(DEP_PATH $ENV{__DEP_PATH__})
find_package(glad)

target_link_libraries(ogl-gut ${DEP_PATH}/glfw/lib/glfw3.lib glad)
target_include_directories(ogl-gut PUBLIC ../include)
target_include_directories(ogl-gut PUBLIC ${DEP_PATH}/glm)
target_include_directories(ogl-gut PUBLIC ${DEP_PATH})
endif()

find_package(stb)

if(UNIX)
target_link_libraries(ogl-gut glfw3 GL stb)
endif()



